import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2025-03-28
 * Time: 23:18
 */
public class Test {
    public static void main(String[] args) {
        ListNode node1 = new ListNode(9);
        ListNode node2 = new ListNode(3);
        ListNode node3 = new ListNode(7);
        node1.next = node2;
        node2.next = node3;

        ListNode node4 = new ListNode(6);
        ListNode node5 = new ListNode(3);
        node4.next = node5;

        Solution solution = new Solution();
        ListNode ret = solution.addInList(node1, node4);
        while(ret != null) {
            System.out.print(ret.val + " ");
            ret = ret.next;
        }
    }
}
